package com.itheima.heima.info.manager.system.controller;

import com.itheima.heima.info.manager.system.domain.Teacher;

import java.util.Scanner;

public class OtherTeacherController extends BaseTeacherController {
    @Override
    public Teacher getTeacher(String sid) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入姓名");
        String name = sc.next();
        System.out.println("请输入年龄");
        int age = sc.nextInt();
        System.out.println("请输入生日");
        String birthday = sc.next();
        Teacher teacher = new Teacher(sid,name,age,birthday);
        return teacher;
    }
}
